package dbHelper.course;

import java.rmi.RemoteException;

import po.coursepo.Classroom;
import Enum.Building;

public class ClassRoomDivider {
	public static Classroom getObject(String str ,String splitKey) throws NumberFormatException, RemoteException{
		String[] roomSpli = str.split(splitKey);
		Classroom room = new Classroom(Building.valueOf(roomSpli[0]), Integer.parseInt(roomSpli[1]));
		return room;
	}
}
